DocumentReplace(IContentElement, IContentElement) Method

Replaces the specified content element, for example a span, a paragraph or a table, with another content element. The properties of the replaced element are preserved if the new element has no own properties.

Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#
public bool Replace(
	IContentElement oldElement,
	IContentElement newElement
)

Parameters

oldElement  IContentElement
The content element to replace.
newElement  IContentElement
The content element that replaces oldElement.

Return Value

Boolean
true if the content element was replaced.

See Also